package com.moshang.blog.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.moshang.blog.entity.SysRole;
import com.moshang.blog.entity.SysUser;

import java.util.Map;
import java.util.Set;


/**
 * 
 *
 * @author moshang
 * @email 597575122@qq.com
 * @date 2018-09-21 14:45:09
 */
public interface SysUsersService extends IService<SysUser> {

    SysUser findUserByLoginName(String username);
    SysUser findUserById(Integer id);

    public  Map selectUserMenuCount();

    int userCount(String param);

    SysUser updateUser(SysUser user);

    SysUser findUserByThirdLoginId(Integer thirdId);


    void deleteUserRolesByUserId(Integer id);

    void saveUserRoles(Integer id, Set<SysRole> roleLists);

    SysUser updateUser(SysUser user, Integer[] roles);

    SysUser saveUser(SysUser user, Integer[] roles);

    void deleteUser(SysUser user);

    SysUser findByUserName(String userName);

}

